package cn.tools8.smartExcel.entity.definition;

import cn.tools8.smartExcel.handler.IWriteDataCellStyleHandler;

/**
 * 样式定义
 *
 * @author tuaobin 2023/6/21$ 17:16$
 */
public class ExcelStyleDefinition {
    /**
     * 数据格式设置
     */
    private String dataFormat;
    /**
     * 单元格样式设置
     */
    private IWriteDataCellStyleHandler cellStyleHandler;

    /**
     * 宽度自适应
     */
    private boolean autoSizeColumn;
    /**
     * 最小宽度
     */
    private int minWidth;

    public String getDataFormat() {
        return dataFormat;
    }

    public void setDataFormat(String dataFormat) {
        this.dataFormat = dataFormat;
    }

    public IWriteDataCellStyleHandler getCellStyleHandler() {
        return cellStyleHandler;
    }

    public void setCellStyleHandler(IWriteDataCellStyleHandler cellStyleHandler) {
        this.cellStyleHandler = cellStyleHandler;
    }

    public boolean isAutoSizeColumn() {
        return autoSizeColumn;
    }

    public void setAutoSizeColumn(boolean autoSizeColumn) {
        this.autoSizeColumn = autoSizeColumn;
    }

    public ExcelStyleDefinition() {
    }

    public ExcelStyleDefinition(String dataFormat, boolean autoSizeColumn) {
        this.dataFormat = dataFormat;
        this.autoSizeColumn = autoSizeColumn;
    }

    public int getMinWidth() {
        return minWidth;
    }

    public void setMinWidth(int minWidth) {
        this.minWidth = minWidth;
    }
}
